package com.us.jack.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.springframework.stereotype.Component;

@Entity
@Component("user")
public class User {
	private Integer id;
	private String userName;
	private String password;
	private Integer age;
	private Date birthday;

	public Integer getAge() {
		return age;
	}

	public Date getBirthday() {
		return birthday;
	}

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public String getPassword() {
		return password;
	}

	public String getUserName() {
		return userName;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}
